/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package proyecto;

/**
 *
 * @author Luis Romero
 */

public class SharedMem {
   
    int Memoria[];

    SharedMem(){
        Memoria = new int[11];  
    }

    public synchronized int getReg(int reg){
        return Memoria[reg-100];
    }

    public synchronized void setReg(int reg, int value){
        Memoria[reg-100]=value;
    }
}
